package com.one.system.domain.question.dto;

import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QuestionAddDTO {

    @NotEmpty(message = "题目不能为空")
    private String title;

    @NotEmpty(message = "题目难度不能为空")
    private Integer difficulty;

    private Long timeLimit;

    private Long spaceLimit;

    @NotEmpty(message = "题目内容不能为空")
    private String content;

    @NotEmpty(message = "题目用例不能为空")
    private String questionCase;

    @NotEmpty(message = "默认代码块不能为空")
    private String defaultCode;

    @NotEmpty(message = "主函数不能为空")
    private String mainFunc;
}
